<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		div{
			width: 400px;
			overflow: hidden;
			border: 10px solid black;
		}
		.p1{
			float: left;
			width: 100px;
			height: 150px;
			background-color: red;
		}
		.p2{
			float: left;
			width: 100px;
			height: 380px;
			background-color: yellow;
		}
		.p3{
			float: left;
			width: 100px;
			height: 120px;
			background-color: blue;
		}
	</style>
</head>
<body>
	<div>
		<p class="p1"></p>
		<p class="p2"></p>
		<p class="p3"></p>
	</div>
</body>
</html>